home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 4
/
The Arsenal Files 4 (Arsenal Computer).ISO
/
gen_prog
/
inst103.exe
/
NUMBER.CFG
< prev
next >
Wrap
Text File
|
1994-12-21
|
544b
|
34 lines
; Number guessing game
clrscr
writeln "The Number Guessing Game!"
random 100 #rn
:Start
inc #gn
writeln
write "Guess #" #gn ": "
put #wherex into #x
put 31 into #textcolor
readfield #x #wherey 3 $s
put 7 into #textcolor
writeln
if $s = "" then Quit
put $s into #g
if #g > #rn then More
if #g = #rn then Equal
writeln "Too low."
goto Done
:Equal
writeln
write "You got it in "
put 15 into #textcolor
write #gn
put 7 into #textcolor
writeln " guesses!"
goto Quit
:More
writeln "Too high."
:Done
goto Start
:Quit